﻿using System;
using System.Runtime.CompilerServices;

namespace AutoR.Models
{
	// Token: 0x020001EC RID: 492
	public class EquipmentDockInfo : BasicDockInfo
	{
		// Token: 0x1700031F RID: 799
		// (get) Token: 0x06000ADA RID: 2778 RVA: 0x0006CB7F File Offset: 0x0006AD7F
		// (set) Token: 0x06000ADB RID: 2779 RVA: 0x0006CB88 File Offset: 0x0006AD88
		public int equipmentCid
		{
			[CompilerGenerated]
			get
			{
				return this.<equipmentCid>k__BackingField;
			}
			[CompilerGenerated]
			set
			{
				if (this.<equipmentCid>k__BackingField == value)
				{
					return;
				}
				this.<equipmentCid>k__BackingField = value;
				this.OnPropertyChanged(<>PropertyChangedEventArgs.IsEmpty);
				this.OnPropertyChanged(<>PropertyChangedEventArgs.OutText);
				this.OnPropertyChanged(<>PropertyChangedEventArgs.equipmentCid);
			}
		}

		// Token: 0x17000320 RID: 800
		// (get) Token: 0x06000ADC RID: 2780 RVA: 0x0006CBCB File Offset: 0x0006ADCB
		public bool IsEmpty
		{
			get
			{
				return this.equipmentCid == 0;
			}
		}

		// Token: 0x17000321 RID: 801
		// (get) Token: 0x06000ADD RID: 2781 RVA: 0x0006CBD8 File Offset: 0x0006ADD8
		public string OutText
		{
			get
			{
				if (!this.IsEmpty)
				{
					return string.Format("剩: {0:00}:{1:00}", this.Span.Hours, this.Span.Minutes);
				}
				return "空";
			}
		}

		// Token: 0x17000322 RID: 802
		// (get) Token: 0x06000ADE RID: 2782 RVA: 0x0006CC23 File Offset: 0x0006AE23
		// (set) Token: 0x06000ADF RID: 2783 RVA: 0x0006CC2C File Offset: 0x0006AE2C
		public TimeSpan Span
		{
			[CompilerGenerated]
			get
			{
				return this.<Span>k__BackingField;
			}
			[CompilerGenerated]
			set
			{
				if (TimeSpan.Equals(this.<Span>k__BackingField, value))
				{
					return;
				}
				this.<Span>k__BackingField = value;
				this.OnPropertyChanged(<>PropertyChangedEventArgs.OutText);
				this.OnPropertyChanged(<>PropertyChangedEventArgs.Span);
			}
		}
	}
}
